
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="Louis">
    <link rel="bookmark" href="http://img.foshanplus.com/bitbug_favicon.ico">
    <link rel="shortcut icon" href="http://img.foshanplus.com/bitbug_favicon.ico">
    {% block head %}
      <script src="http://img.foshanplus.com/js/jquery.js"></script>
     <link rel="stylesheet" href="http://img.foshanplus.com/css/bootstrap.min.css">
     <script src="http://img.foshanplus.com/js/bootstrap.min.js"></script>

    <title>{% block title %}大屏系统{% endblock %}</title>
    {% endblock %}
  </head>

<body role="document">
<!-- content -->
<div class="container">{% block content %}{% endblock %}</div>

<div id="footer">
        {% block footer %}

        {% endblock %}
 </div>
<script type="text/javascript">
$.ajaxSetup({
     beforeSend: function(xhr, settings) {
         function getCookie(name) {
             var cookieValue = null;
             if (document.cookie && document.cookie != '') {
                 var cookies = document.cookie.split(';');
                 for (var i = 0; i < cookies.length; i++) {
                     var cookie = jQuery.trim(cookies[i]);
                     // Does this cookie string begin with the name we want?
                     if (cookie.substring(0, name.length + 1) == (name + '=')) {
                         cookieValue = decodeURIComponent(cookie.substring(name.length + 1));
                         break;
                     }
                 }
             }
             return cookieValue;
         }
         if (!(/^http:.*/.test(settings.url) || /^https:.*/.test(settings.url))) {
             // Only send the token to relative URLs i.e. locally.
             xhr.setRequestHeader("X-CSRFToken", getCookie('csrftoken'));
         }
     }
});
</script>
    {% block script %}
    {% endblock %}
  </body>
</html>